
<lift:surround with="default" at="content">

<head>
<script type="text/javascript">
/* <![CDATA[ */		      
jQuery(function () {
    jQuery("#prueba").click (function () {
       var row = jQuery('#id_501_pid_56_type_TimeSerie') ;
       alert ("prueba con fila: " + row) ;
       row.after('<tr><td>1</td><td>Uno</td></tr>');
    }) ;
}) ;
/* ]]> */    
</script>
</head>

  <h2>Test one treetable using jQuery jqTreeTable</h2>

  <lift:snippet type="TreeTableAlone:render">
    <treetable:render>

    <table id="tablemain" style="width: 600px; border: 0px; margin: 0px; padding: 0px; ">
      <thead>
        <tr style="background-color: rgb(200,200,200)">
          <td style="width: 60%; height: 50px">Lugar o fecha</td>
          <td colspan="2">Nieve caida (mm)</td>
        </tr>
      </thead>
      <tbody>
          <tr rowtype="Region" colspan="2" style="font-weight: bold">
            <td colspan="2"><tt:imgs/><region:name/></td>
          </tr>
          <tr rowtype="TimeSerie" colspan="2" style="font-weight: bold; ; height: 30px"> 
            <td colspan="2"><tt:imgs/><timeserie:name /></td>
            <td style="text-align: right"><timeserie:sum /></td>
          </tr>
          <tr rowtype="Measure">
            <td><tt:imgs/><measure:date /></td>
            <td style="text-align: right"><measure:mm /></td>
            <td></td>
          </tr>
      </tbody>
    </table>
    
    </treetable:render>
    
    <br />
    
    <input type="button" id="prueba" value="para probar" />
    
  </lift:snippet>
  
</lift:surround>

